﻿// Mirco Töpfer

using System;
using System.Windows.Forms;

namespace pheidippides.app.Forms
{
    public partial class BrowserForm : Form
    {
        public BrowserForm(String URL, String Text)
        {
            InitializeComponent();
            labelText.Text = Text;
            this.Text = URL;
            webBrowser.Url = new Uri(URL);
        }

        private void BrowserForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            FormManager.FormManager.GetInstance().DisposeForm(this);
        }
    }
}